package com.example.administrator.anyview.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.administrator.anyview.R;
import com.example.administrator.anyview.my_views.MyCountView;


public class HomeFragment extends Fragment {

    View view;
    @Override
    public View onCreateView(LayoutInflater inflater,  ViewGroup container,  Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_home, container, false);
        final MyCountView myCountView = (MyCountView) view.findViewById(R.id.myCountView);
        new Thread(new Runnable() {
            @Override
            public void run() {
                myCountView.addNum(8);
            }
        }).start();
        return view;
    }
}
